#include "constante.h"
#include "jeux.h"
#include "niveau.h"
int main(int argc, char *argv[])
{
SDL_Event event;
SDL_Init(SDL_INIT_VIDEO) ;
SDL_Surface *image_blanche=NULL;
SDL_Surface *screen = NULL;
screen = SDL_SetVideoMode (500,600,32,SDL_HWSURFACE|SDL_DOUBLEBUF);
if (screen == NULL)
    {
    printf("Unable to set video mode: %s\n", SDL_GetError());
    return 1;
    }
//image_blanche
int done=1;
while (done)
{
    //image_blanche=SDL_LoadBMP ("")
    SDL_FillRect(screen,NULL,SDL_MapRGB(screen->format,255,255,255 ));
    SDL_Flip(screen);
    while (SDL_PollEvent(&event))
    {
        switch(event.type)
        {
            case SDL_QUIT: done = 0; break;
            case SDL_KEYDOWN:
               switch(event.key.keysym.sym)
               {
                   case SDLK_ESCAPE : done=0; break;
                   case SDLK_j: jouer(screen);break;
               }

        }
    }
}
    SDL_Quit();

}
#include"jeux.c"
#include"niveau.c"
